<?php


namespace app\data\controller;

use think\admin\Controller;
class TurntablePrizes extends Controller
{
    public function index()
    {
        $this->title = '大转盘数据管理';
        $query = \app\data\model\TurntablePrizes::mQuery()->order('id desc');
        $query->like('title')->dateBetween('create_time')->page();
    }


    /**
     * 添加商品分类
     * @auth true
     */
    public function add()
    {
        $this->vo = ['type'=>0];
        \app\data\model\TurntablePrizes::mForm('form');
    }
    /**
     * 编辑商品分类
     * @auth true
     */
    public function edit()
    {
        \app\data\model\TurntablePrizes::mForm('form');
    }
    /**
     * 删除商品分类
     * @auth true
     */
    public function remove()
    {
        \app\data\model\TurntablePrizes::mDelete();


    }

}